package org.item.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.item.common.enumbean.UserStatus;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("sys_user")
public class SysUser extends BaseBean implements Serializable {
 @TableId(type = IdType.AUTO)
   private Integer id;
    private String  username;
    private String password;
    private String   email;
    private String  phone;
    @TableField("is_super_administrator")
    private Integer    issuperadministrator;
    private UserStatus status;

    private List<SysRole>  roles;
 private List<SysMenu> menus;

}
